package org.cfx.basic.config;

//import org.cfx.auth.interceptor.AuthInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author RTX 9090
 */

//@Component
//public class AuthConfig implements WebMvcConfigurer {
//    @Autowired
//    private AuthInterceptor authInterceptor;
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(authInterceptor)
//                .addPathPatterns("/**")
//                .excludePathPatterns("/login","/login2","/employee/exportExcel","/employee/importExcel","/logout","/employee/exportMore","employee/exportMoreExcel")
//                .excludePathPatterns("/css/**","/fonts/**","/images/**","/js/**");
//    }
//}
